From 3e14de9519625fbdf4e45de683552e1072e56e91 Mon Sep 17 00:00:00 2001 From: robertl Date: Sun, 25 Oct 2009 19:27:38 +0000 Subject: [PATCH] Better reccognition of unknown alt in lowranceusr. git-svn-id: http://gpsbabel.googlecode.com/svn/trunk@3816 f51c46e8-681c-474f-0cfe-069cfd0219fb --- gpsbabel/lowranceusr.c | 2 +- gpsbabel/reference/lowrance-v2-unicsv.txt | 8 ++++---- gpsbabel/reference/lowrance-v3-unicsv.txt | 8 ++++---- 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/gpsbabel/lowranceusr.c b/gpsbabel/lowranceusr.c index dd5ebbb96..aa86be9e0 100644 --- a/gpsbabel/lowranceusr.c +++ b/gpsbabel/lowranceusr.c @@ -360,7 +360,7 @@ lowranceusr_parse_waypt(waypoint *wpt_tmp) wpt_tmp->latitude = lat_mm_to_deg(gbfgetint32(file_in)); wpt_tmp->longitude = lon_mm_to_deg(gbfgetint32(file_in)); wpt_tmp->altitude = FEET_TO_METERS(gbfgetint32(file_in)); - if (wpt_tmp->altitude <= UNKNOWN_USR_ALTITUDE) { + if (METERS_TO_FEET(wpt_tmp->altitude) <= -10000) { wpt_tmp->altitude = unknown_alt; } diff --git a/gpsbabel/reference/lowrance-v2-unicsv.txt b/gpsbabel/reference/lowrance-v2-unicsv.txt index d0eb8e862..cec574e93 100644 --- a/gpsbabel/reference/lowrance-v2-unicsv.txt +++ b/gpsbabel/reference/lowrance-v2-unicsv.txt @@ -60,11 +60,11 @@ No,Latitude,Longitude,Name,Altitude,Symbol,Date,Time 59,42.388913,-82.894047,"014",174.0,"diamond 1",2008/06/20,17:16:39 60,42.409493,-82.881329,"015",176.5,"diamond 1",2008/06/20,17:51:04 61,42.410478,-82.881374,"016",176.8,"diamond 1",2008/06/20,18:06:07 -62,42.411104,-82.880527,"017",-3048.0,"diamond 1",2008/06/20,18:16:10 +62,42.411104,-82.880527,"017",,"diamond 1",2008/06/20,18:16:10 63,42.382415,-82.900131,"018",172.2,"diamond 1",2008/06/21,15:10:10 -64,42.380771,-82.899347,"019",-3048.0,"diamond 1",2008/06/21,15:57:22 -65,42.413326,-82.879121,"020",-3048.0,"diamond 1",2008/06/21,18:03:09 +64,42.380771,-82.899347,"019",,"diamond 1",2008/06/21,15:57:22 +65,42.413326,-82.879121,"020",,"diamond 1",2008/06/21,18:03:09 66,42.378553,-82.900104,"021",173.1,"diamond 1",2008/06/21,19:38:08 -67,42.950009,-85.607586,"012",-3048.0,"diamond 1",2008/06/28,19:01:28 +67,42.950009,-85.607586,"012",,"diamond 1",2008/06/28,19:01:28 68,41.413022,-85.724372,"Icon 1",0.0,"diamond 1",, 69,41.413035,-85.724399,"Icon 2",0.0,"diamond 1",, diff --git a/gpsbabel/reference/lowrance-v3-unicsv.txt b/gpsbabel/reference/lowrance-v3-unicsv.txt index 6a22a1ea7..2dd2b4c1d 100644 --- a/gpsbabel/reference/lowrance-v3-unicsv.txt +++ b/gpsbabel/reference/lowrance-v3-unicsv.txt @@ -60,11 +60,11 @@ No,Latitude,Longitude,Name,Altitude,Symbol,Depth,Date,Time 59,42.388913,-82.894047,"014",174.0,"diamond 1",1.2,2008/06/20,17:16:39 60,42.409493,-82.881329,"015",176.5,"diamond 1",1.8,2008/06/20,17:51:04 61,42.410478,-82.881374,"016",176.8,"diamond 1",1.4,2008/06/20,18:06:07 -62,42.411104,-82.880527,"017",-3048.0,"diamond 1",,2008/06/20,18:16:10 +62,42.411104,-82.880527,"017",,"diamond 1",,2008/06/20,18:16:10 63,42.382415,-82.900131,"018",172.2,"diamond 1",1.0,2008/06/21,15:10:10 -64,42.380771,-82.899347,"019",-3048.0,"diamond 1",,2008/06/21,15:57:22 -65,42.413326,-82.879121,"020",-3048.0,"diamond 1",,2008/06/21,18:03:09 +64,42.380771,-82.899347,"019",,"diamond 1",,2008/06/21,15:57:22 +65,42.413326,-82.879121,"020",,"diamond 1",,2008/06/21,18:03:09 66,42.378553,-82.900104,"021",173.1,"diamond 1",2.2,2008/06/21,19:38:08 -67,42.950009,-85.607586,"012",-3048.0,"diamond 1",,2008/06/28,19:01:28 +67,42.950009,-85.607586,"012",,"diamond 1",,2008/06/28,19:01:28 68,41.413022,-85.724372,"Icon 1",0.0,"diamond 1",,, 69,41.413035,-85.724399,"Icon 2",0.0,"diamond 1",,, -- 2.30.2